using System;
using System.Data;
using System.Configuration;
using System.Data.SqlClient;
using CodeWork.Library.Data;
using EasyCommerce.DAL;

/// <summary>
/// Summary description for SiteManager
/// </summary>
namespace EasyCommerce.BLL
{
    public class SiteManager
    {
        private string _siteName;
        public string SiteName
        {
            get { return this._siteName; }
            set { this._siteName = value; }
        }

        private SiteManager() { }

        public static void InitiateSite()
        {
            SiteManager siteManager = new SiteManager();
            Settings siteSettings = Settings.Load(1);
            siteManager._siteName = siteSettings.SiteName;

            //Open to enable notification based sql caching
            //SqlDependency.Start(SqlServerDAO.CurrentConnectionString.ConnectionString);
        }
    }
}